﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zadatak2
{
    public interface Pretvarac
    {
        double pretvori(double value);
    }

    public class FarenheitUCelzijusPretvarac : Pretvarac
    {
        public double pretvori(double f)
        {
            return (f - 32) / 1.8;
        }
    }

    public class CelzijusUFarentheitPretvarac : Pretvarac
    {
        public double pretvori(double c)
        {
            return c * 1.8 + 32;
        }
    }
}
